|
|
When I run the following the cylindrical pattern seems to be applied in
only the x dimension. Is it possible to apply it in x and z dimensions?
#macro MarkOrigin (Radius) //mark origin
cylinder { -100*y 0*y Radius
pigment { rgb .5 } finish { ambient .8} }
cylinder { -100*z 0*z Radius
pigment { rgb .5 } finish { ambient .8} }
cylinder { -100*x 0*x Radius
pigment { rgb .5 } finish { ambient .8} }
cylinder { 0*y 100*y Radius
pigment { rgb < 0, 1, 0 > } finish { ambient .8} }
cylinder { 0*z 100*z Radius
pigment { rgb < 0, 0, 1 > } finish { ambient .8} }
cylinder { 0*x 100*x Radius
pigment { rgb < 1, 0, 0 > } finish { ambient .8} }
#end
MarkOrigin (.4)
camera {
location <-120,60,-80>*3
look_at <250,0,250>
angle 55
right x*image_width/image_height
}
light_source {
0*x
color rgb 2.25
translate vrotate ( <0,0,-1200>, <60, 45, 0> )
}
plane {
y, 0
pigment {
rgb .1
}
finish {
ambient 0
diffuse .8
}
}
#local F_Terrain =
function {
pattern {
cylindrical
cubic_wave
}
}
#local Terrain =
height_field {
function 1000,1000 {
F_Terrain(x,y,z)
}
pigment {
function {
F_Terrain(x,y,z)
}
pigment_map {
[0 rgb Green]
[1 rgb Cyan]
}
}
scale <500, 50, 500 >
};
object { Terrain }
Post a reply to this message
Attachments:
Download 'img.1001.jpg' (9 KB)
Preview of image 'img.1001.jpg'
|
|